package com.wryyyyy.mapper;

import com.wryyyyy.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wryyyyy
 * @since 2023-11-12
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from tb_user where tb_user.id!=#{id} order by rand() limit 15")
    public List<User> getUsers(@Param("id") String userid);
}
